package com.ljm.bootweb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ViewTestController {

    @GetMapping("/htmlTest")
    public String htmlTest(Model model){

        // model 中的数据会被放在请求域中 request.setAttribute("a",aq)
        model.addAttribute("msg","你好 ~");
        model.addAttribute("link","http://www.360.com");
        return "success";
    }



}
